const path = require("path");

function pathResolve(dir) {
    return path.join(__dirname, dir);
}

module.exports = {
    chainWebpack: (config) => {
        config.resolve.alias
            .set("@", pathResolve("src"))
            .set("@views", pathResolve("src/views"))
            .set("@modules", pathResolve("src/views/modules"));
    },
    devServer: {
        port: 3032
    }
}